﻿@model IEnumerable<VideoAlbum>

@{
    ViewBag.Title = "Albums";
}

<h2>Albums</h2>

<table>
    <thead>
        <th>Icon</th>
        <th>Title</th>
        <th>Year</th>
    </thead>
    @foreach (var album in Model)
    {
    <tr class="admin-album">
        <td>
            <img src="@album.IconUrl" alt="@album.AlbumName" />
        </td>
        <td style="vertical-align:top">
            @album.AlbumName
        </td>
        <td style="vertical-align:top">
            @album.YearIssued
        </td>
    </tr>
    }
</table>
<script type="text/javascript">
    $(".admin-album:even").css("background-color", "#d2deea");
</script>